create custom domain in localhost xampp

99

create custom domain in localhost xampp -

//File path: ~/XAMPP/apache/conf/extra/httpd-vhosts.conf
<VirtualHost *:80>
  DocumentRoot "F:/XAMPP/htdocs/"
  ServerName localhost
</VirtualHost>
<VirtualHost *:80>
  DocumentRoot "F:/XAMPP/htdocs/todo-api"
  ServerName api.todo
</VirtualHost>
//Complete Path: C:\Windows\System32\drivers\etc\hosts
127.0.0.1 localhost
127.0.0.1 api.todo #Right Down ServerName

Comments

Submit
0 Comments